package com.zf.test;



import com.zf.rpc.annotation.Service;
import com.zf.rpc.api.HelloObject;
import com.zf.rpc.api.HelloService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @ProjectName: RPC-zhaofeng
 * @Package: com.zf.simpleImplementation
 * @ClassName: HelloServiceImpl
 * @Author: zf
 * @Description:
 * @Date: 2021/5/6 17:30
 * @Version: 1.0
 */
@Service
public class HelloServiceImpl implements HelloService {
    private static final Logger logger = LoggerFactory.getLogger(HelloServiceImpl.class);
    @Override
    public String hello(HelloObject object) {
        logger.info("接收到：{}", object.getMessage());
        return "这是Impl方法:" + object.getId();
    }
}
